package com.china.api.web.pojo;

import java.util.Date;

/**
 * 
 * @Description:个人账户信息
 * @author:zhaoxudong
 * @version:v1.0.0
 * @Created:2013-11-21下午2:03:20
 * @Modified:
 */
public class MemberAllInfo {
	/**
	 * 会员id
	 */
	private String crmMemberId;
	/**
	 * 国航主卡号
	 */
	private String memberNumber;
	/**
	 * 卡级别
	 */
	private String primaryTierName;
	/**
	 * 称谓
	 */
	private String mm;
	/**
	 * 英文名
	 */
	private String firstName;
	/**
	 * 英文姓
	 */
	private String lastName;
	/**
	 * 中文姓
	 */
	private String cnLastName;
	/**
	 * 中文名
	 */
	private String cnFirstName;
	/**
	 * 性别
	 */
	private String gender;
	/**
	 * 生日
	 */
	private String dateofBirth;
	/**
	 * 国籍
	 */
	private String nationality;
	/**
	 * 证件类型
	 */
	private String credentialType;
	/**
	 * 证件号
	 */
	private String credentialNum;
	/**
	 * 身份证或者军官证 ID Card Officer_Certification
	 */
	private String idCardOrOfficer;
	/**
	 * 护照 1,Ordinary_Passport 2,Official_Passport 3,UN_Passport
	 */
	private String passPort;
	
	/**
	 * 主要电话号码
	 */
	private String phoneNum;
	/**
	 * 主要邮件地址
	 */
	private String emailAddr;
	/**
	 * 联系语言
	 */
	private String language;
	/**
	 * 
	  * @Description:获取语言
	  * @return String
	  * @Created:zhaoxudong 2013-11-22下午03:38:22
	  * @Modified:
	 */
	public String getRelLanguage(){
		String rel = "";
		if(language == null){
			rel = "";
		}else if(language.equals("CN")){
			rel = "中文";
		}else if(language.equals("EN")){
			rel = "英文";
		}
		return rel;
	}
	/**
	 * 
	  * @Description:获取卡级别
	  * @return String
	  * @Created:zhaoxudong 2013-11-22下午03:38:22
	  * @Modified:
	 */
	public String getRelPrimaryTierName(){
		String rel = "";
		if(primaryTierName == null){
			rel = "";
		}else if(primaryTierName.equals("Gold")){
			rel = "金卡";
		}else if(primaryTierName.equals("Junior")){
			rel = "儿童卡";
		}else if(primaryTierName.equals("Lifetime Platinum")){
			rel = "终白卡";
		}else if(primaryTierName.equals("Normal")){
			rel = "知音卡";
		}else if(primaryTierName.equals("Platinum")){
			rel = "白金卡";
		}else if(primaryTierName.equals("Silver")){
			rel = "银卡";
		}
		return rel;
	}
	
	/**
	 * 
	  * @Description:获取下一卡级别
	  * @return String
	  * @Created:zhaoxudong 2013-11-22下午03:38:22
	  * @Modified:
	 */
	public String getNextPrimaryTierName(){
		String rel = "";
		if(primaryTierName == null){
			rel = "";
		}else if(primaryTierName.equals("Gold")){
			rel = "白金卡";
		}else if(primaryTierName.equals("Junior")){
			rel = "知音卡";
		}else if(primaryTierName.equals("Lifetime Platinum")){
			rel = "";
		}else if(primaryTierName.equals("Normal")){
			rel = "银卡";
		}else if(primaryTierName.equals("Platinum")){
			rel = "终白卡";
		}else if(primaryTierName.equals("Silver")){
			rel = "金卡";
		}
		return rel;
	}
	
	/**
	 * 
	  * @Description:获取下一卡级别
	  * @return String
	  * @Created:zhaoxudong 2013-11-22下午03:38:22
	  * @Modified:
	 */
	public String getNextValPrimaryTierName(){
		String rel = "";
		if(primaryTierName == null){
			rel = "";
		}else if(primaryTierName.equals("Gold")){
			rel = "16万";
		}else if(primaryTierName.equals("Junior")){
			rel = "";
		}else if(primaryTierName.equals("Lifetime Platinum")){
			rel = "";
		}else if(primaryTierName.equals("Normal")){
			rel = "4万";
		}else if(primaryTierName.equals("Platinum")){
			rel = "100万";
		}else if(primaryTierName.equals("Silver")){
			rel = "8万";
		}
		return rel;
	}
	
	/**
	 * 
	  * @Description:获取称谓
	  * @return String
	  * @Created:zhaoxudong 2013-11-22下午03:39:18
	  * @Modified:
	 */
	public String getRelmm(){
		String rel = "";
		if(mm == null){
			rel = "";
		}else if(mm.equals("Mr.")){
			rel = "先生";
		}else if(mm.equals("Ms.")){
			rel = "女士";
		}
		return rel;
	}
	
	/**
	 * 
	  * @Description:获取性别
	  * @return String
	  * @Created:zhaoxudong 2013-11-22下午03:39:18
	  * @Modified:
	 */
	public String getRelGender(){
		String rel = "";
		if(gender == null){
			rel = "";
		}else if(gender.equals("M")){
			rel = "男";
		}else if(gender.equals("F")){
			rel = "女";
		}
		return rel;
	}
	/**
	 * 
	  * @Description:获取生日
	  * @return String
	  * @Created:zhaoxudong 2013-11-22下午03:39:18
	  * @Modified:
	 */
	public String getRelDateofBirth(){
		String rel = "";
		if(dateofBirth == null){
			rel = "";
		}else{
			rel=dateofBirth.replace("/", "-");
		}
		return rel;
	}
	/**
	 * 
	  * @Description:获取证件类型
	  * @return String
	  * @Created:zhaoxudong 2013-11-22下午03:39:18
	  * @Modified:
	 */
	public String getRelzhengjian(){
		String rel = "";
		if(credentialType == null){
			rel = "";
		}else if(credentialType.equals("ID Card")){
			rel = "身份证";
		}else if(credentialType.equals("Officer_Certification")){
			rel = "军官证";
		}
		return rel;
	}
	
	/**
	 * 
	  * @Description:获取护照类型
	  * @return String
	  * @Created:zhaoxudong 2013-11-22下午03:39:18
	  * @Modified:
	 */
	public String getRelhuzhao(){
		String rel = "";
		if(credentialType == null){
			rel = "";
		}else if(credentialType.equals("Ordinary_Passport")){
			rel = "普通护照";
		}else if(credentialType.equals("Official_Passport")){
			rel = "公务护照";
		}else if(credentialType.equals("U.N._Passport")){
			rel = "联合国护照";
		}
		return rel;
	}
	/**
	 * 
	  * @Description: 获取隐去的电话号码
	  * @return String
	  * @Created:zhaoxudong 2013-11-24下午11:09:46
	  * @Modified:
	 */
	public String getRelPhoneNum(){
		String rel = "";
		if(phoneNum == null){
			rel = "";
		}else if(phoneNum.length()>7){
			rel = phoneNum.substring(0,phoneNum.length() - (phoneNum.substring(3)).length()) +"****"+phoneNum.substring(7);
		}
		return rel;
	}
	/**
	 * 
	  * @Description: 获取隐去的邮箱
	  * @return String
	  * @Created:zhaoxudong 2013-11-24下午11:09:46
	  * @Modified:
	 */
	public String getRelEmailAddr(){
		String rel = "";
		if(emailAddr == null){
			rel = "";
		}else if(emailAddr.length()>5){
			rel = emailAddr.substring(0, 1) + "***" + emailAddr.substring(emailAddr.indexOf("@")-1);
		}
		return rel;
	}
	
	/**  
	 * crmMemberId  
	 *  
	 * @return  the crmMemberId  
	 * @since   1.0.0  
	 */
	
	public String getCrmMemberId() {
		return crmMemberId;
	}
	/**  
	 * @param crmMemberId the crmMemberId to set  
	 */
	public void setCrmMemberId(String crmMemberId) {
		this.crmMemberId = crmMemberId;
	}
	/**  
	 * memberNumber  
	 *  
	 * @return  the memberNumber  
	 * @since   1.0.0  
	 */
	
	public String getMemberNumber() {
		return memberNumber;
	}
	/**  
	 * @param memberNumber the memberNumber to set  
	 */
	public void setMemberNumber(String memberNumber) {
		this.memberNumber = memberNumber;
	}
	/**  
	 * primaryTierName  
	 *  
	 * @return  the primaryTierName  
	 * @since   1.0.0  
	 */
	
	public String getPrimaryTierName() {
		return primaryTierName;
	}
	/**  
	 * @param primaryTierName the primaryTierName to set  
	 */
	public void setPrimaryTierName(String primaryTierName) {
		this.primaryTierName = primaryTierName;
	}
	/**  
	 * mm  
	 *  
	 * @return  the mm  
	 * @since   1.0.0  
	 */
	
	public String getMm() {
		return mm;
	}
	/**  
	 * @param mm the mm to set  
	 */
	public void setMm(String mm) {
		this.mm = mm;
	}
	/**  
	 * firstName  
	 *  
	 * @return  the firstName  
	 * @since   1.0.0  
	 */
	
	public String getFirstName() {
		return firstName;
	}
	/**  
	 * @param firstName the firstName to set  
	 */
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	/**  
	 * lastName  
	 *  
	 * @return  the lastName  
	 * @since   1.0.0  
	 */
	
	public String getLastName() {
		return lastName;
	}
	/**  
	 * @param lastName the lastName to set  
	 */
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	/**  
	 * cnLastName  
	 *  
	 * @return  the cnLastName  
	 * @since   1.0.0  
	 */
	
	public String getCnLastName() {
		return cnLastName;
	}
	/**  
	 * @param cnLastName the cnLastName to set  
	 */
	public void setCnLastName(String cnLastName) {
		this.cnLastName = cnLastName;
	}
	/**  
	 * cnFirstName  
	 *  
	 * @return  the cnFirstName  
	 * @since   1.0.0  
	 */
	
	public String getCnFirstName() {
		return cnFirstName;
	}
	/**  
	 * @param cnFirstName the cnFirstName to set  
	 */
	public void setCnFirstName(String cnFirstName) {
		this.cnFirstName = cnFirstName;
	}
	/**  
	 * gender  
	 *  
	 * @return  the gender  
	 * @since   1.0.0  
	 */
	
	public String getGender() {
		return gender;
	}
	/**  
	 * @param gender the gender to set  
	 */
	public void setGender(String gender) {
		this.gender = gender;
	}
	/**  
	 * dateofBirth  
	 *  
	 * @return  the dateofBirth  
	 * @since   1.0.0  
	 */
	
	public String getDateofBirth() {
		return dateofBirth;
	}
	/**  
	 * @param dateofBirth the dateofBirth to set  
	 */
	public void setDateofBirth(String dateofBirth) {
		this.dateofBirth = dateofBirth;
	}
	/**  
	 * nationality  
	 *  
	 * @return  the nationality  
	 * @since   1.0.0  
	 */
	
	public String getNationality() {
		return nationality;
	}
	/**  
	 * @param nationality the nationality to set  
	 */
	public void setNationality(String nationality) {
		this.nationality = nationality;
	}
	/**  
	 * credentialType  
	 *  
	 * @return  the credentialType  
	 * @since   1.0.0  
	 */
	
	public String getCredentialType() {
		return credentialType;
	}
	/**  
	 * @param credentialType the credentialType to set  
	 */
	public void setCredentialType(String credentialType) {
		this.credentialType = credentialType;
	}
	/**  
	 * credentialNum  
	 *  
	 * @return  the credentialNum  
	 * @since   1.0.0  
	 */
	
	public String getCredentialNum() {
		return credentialNum;
	}
	/**  
	 * @param credentialNum the credentialNum to set  
	 */
	public void setCredentialNum(String credentialNum) {
		this.credentialNum = credentialNum;
	}
	/**  
	 * phoneNum  
	 *  
	 * @return  the phoneNum  
	 * @since   1.0.0  
	 */
	
	public String getPhoneNum() {
		return phoneNum;
	}
	/**  
	 * @param phoneNum the phoneNum to set  
	 */
	public void setPhoneNum(String phoneNum) {
		this.phoneNum = phoneNum;
	}
	
	
	/**  
	 * emailAddr  
	 *  
	 * @return  the emailAddr  
	 * @since   1.0.0  
	 */
	
	public String getEmailAddr() {
		return emailAddr;
	}
	/**  
	 * @param emailAddr the emailAddr to set  
	 */
	public void setEmailAddr(String emailAddr) {
		this.emailAddr = emailAddr;
	}
	/**  
	 * language  
	 *  
	 * @return  the language  
	 * @since   1.0.0  
	 */
	
	public String getLanguage() {
		return language;
	}
	/**  
	 * @param language the language to set  
	 */
	public void setLanguage(String language) {
		this.language = language;
	}
	/**  
	 * idCardOrOfficer  
	 *  
	 * @return  the idCardOrOfficer  
	 * @since   1.0.0  
	 */
	
	public String getIdCardOrOfficer() {
		return idCardOrOfficer;
	}
	/**  
	 * @param idCardOrOfficer the idCardOrOfficer to set  
	 */
	public void setIdCardOrOfficer(String idCardOrOfficer) {
		this.idCardOrOfficer = idCardOrOfficer;
	}
	/**  
	 * passPort  
	 *  
	 * @return  the passPort  
	 * @since   1.0.0  
	 */
	
	public String getPassPort() {
		return passPort;
	}
	/**  
	 * @param passPort the passPort to set  
	 */
	public void setPassPort(String passPort) {
		this.passPort = passPort;
	}
	
	

	
}
